Skip to content

Conversation

@NirajC-Microsoft
Copy link
Contributor

@NirajC-Microsoft NirajC-Microsoft commented Jul 8, 2025

This pull request introduces changes to improve the handling of existing AI Foundry projects and resources in the infra/main.bicep file. The updates ensure that the code can dynamically use existing resources when specified, reducing redundancy and enhancing flexibility.

Enhancements for handling existing AI Foundry resources:

  • Dynamic resource name assignment: Added logic to dynamically assign aiFoundryAiServicesResourceName based on the presence of an existing Foundry project resource ID. If the resource ID exists, the name is derived from it; otherwise, default logic is used.
  • Private endpoint configuration updates: Updated private endpoint configurations to use the name from aiFoundryAiServicesConfiguration or the default naming convention, ensuring consistency and adaptability.
  • AI Foundry project name assignment: Enhanced the logic for assigning aiFoundryAiProjectName to support existing Foundry projects, deriving the name from the resource ID when applicable. …based on existing and new deployment

Purpose

  • ...

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

infra/main.bicep Outdated
{
name: 'pep-${aiFoundryAiServicesResourceName}'
customNetworkInterfaceName: 'nic-${aiFoundryAiServicesResourceName}'
name: 'pep-${aiFoundryAiServicesConfiguration.?name ?? 'aisa-${solutionPrefix}'}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not required as the check is already added in line 701

@Prajwal-Microsoft Prajwal-Microsoft merged commit 678d77e into dev Jul 9, 2025
7 of 8 checks passed
@NirajC-Microsoft NirajC-Microsoft deleted the psl-bug-20357 branch July 14, 2025 04:50
@github-actions
Copy link

🎉 This PR is included in version 2.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

blessing-msft pushed a commit that referenced this pull request Aug 1, 2025
fix: Fix to avoid task creation for violent and meaning less prompts when deployment reuse existing AI Foundry Project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants